package com.qly.website.feign;

import com.qly.website.feign.hystrix.TestFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by Andy ye on 2018/8/1.
 */
@FeignClient(value = "QLY-WAPSITE",fallback = TestFeignHystrix.class)
public interface TestFeignInterface {

    @RequestMapping(value = "/index",method = RequestMethod.GET)
    String sayHiFromFeignClient(@RequestParam(value = "name") String name);

}
